{# SPDX-FileCopyrightText: © 2015 Siemens AG

   SPDX-License-Identifier: FSFAP
#}

##File

FileName: {{ fileName }}
SPDXID: SPDXRef-item{{ fileId }}
{# FileType: OTHER #}
FileChecksum: SHA1: {{ sha1 | lower }}
FileChecksum: SHA256: {{ sha256 | lower }}
FileChecksum: MD5: {{ md5 | lower }}
{% if isCleared %}
{% if concludedLicenses|default is empty %}
LicenseConcluded: NONE
{% else %}
LicenseConcluded: {{ concludedLicense }}
{% endif%}
{% else %}
LicenseConcluded: NOASSERTION
{% endif %}
{% if licenseCommentState %}
{% if licenseComment is not empty %}
LicenseComments: <text>{{ licenseComment |replace({'<text>':'&lt;text&gt;','</text>':'&lt;/text&gt;'})
                                         |replace({'\f':''}) }} </text>
{% endif %}
{% endif %}
{% if scannerLicenses|default is empty %}
LicenseInfoInFile: NOASSERTION
{% else %}
{% for lic in  scannerLicenses %}
LicenseInfoInFile: {{ lic|replace({' ':'-'})}}
{% endfor %}
{% endif %}
{# FileSize: 48 Kb (49173 bytes) #}
{% if copyrights|default is empty %}
FileCopyrightText: NOASSERTION
{% else %}
FileCopyrightText: <text> {{ copyrights|join('\n')
                                       |replace({'<text>':'&lt;text&gt;','</text>':'&lt;/text&gt;'})
                                       |replace({'\f':''}) }} </text>
{% endif %}
{% if acknowledgements|default is not empty %}
FileAttributionText: <text> {{ acknowledgements|join('\n')
                                               |replace({'<text>':'&lt;text&gt;','</text>':'&lt;/text&gt;'})
                                               |replace({'\f':''}) }} </text>
{% endif %}
